<@realgodo.admin_html>
<div class="title">
	<h1><#if info?exists&&info.id?exists>编辑<#else>添加</#if>公告</h1>
	<span class="tTip">标注"<em>*</em>"为必填项</span>
</div>
<div class="box">
	<div class="inner">
		<div class="tx_table">
			<h2><#if info?exists&&info.id?exists>编辑<#else>添加</#if>公告</h2>
			<form name="saveForm" id="saveForm" action="${base}/admin/info/index!save" method="post">
			<div class="data">
				<table>
					<colgroup width="24%"></colgroup>
					<tbody>
						<tr>
							<th><em>*</em>公告内容：</th>
							<td>
								<input class="Q" type="text" name="info.title" id="info_title" size="50" value="${(info.title)!}"/>
								<span id="info_titleTip"></span>
							</td>
						</tr>

					</tbody>
				</table>
				<div class="tx_sender">
						<input class="step" type="submit" value="保 存" title="保 存"/>
						<input class="step" type="button" value="返回列表" title="返回列表" onclick="javascript:location.href='${base}/admin/info/'"/>
						<#if info?exists&&info.id?exists>
						<input type="hidden" name="info.id" value="${(info.id?c)!}" />
						</#if>
				</div>
			</div>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript">
	$(document).ready(function(){
		$.formValidator.initConfig({formid:"saveForm",onerror:function(msg){},onsuccess:function(){return true;}});					
		$("#info_title")
		.formValidator({onshow:"请输入公告内容",onfocus:"请输入公告内容",oncorrect:"公告内容正确"})
		.inputValidator({min:6,max:100,onerror:"公告中文名称为6-100位字符,1个汉字算2位字符,请确认"});
	});
	
</script>
</@realgodo.admin_html>